package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.promotion.pojo.reserve_rule.ReserveRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.promotion.pojo.reserve_rule.ReserveRuleDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 促销-预约规则表 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2020-12-14
 */
@Repository
public interface ReserveRuleDao extends BaseMapper<ReserveRule> {

    /**根据规则名称查询预约规则 */
    List<ReserveRuleDTO> getReserveRuleByName(String ruleName);

    /**获取预约规则*/
    IPage<ReserveRuleDTO> getReserveRuleParkList(Page page);
}
